﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="UpdateFilter.aspx.cs" Inherits="ERPTemplate.Public.UpdateFilter" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml" >
<head runat="server">
    <title></title>
    <style type="text/css">
        .MainDiv
        {
        }
        .MainTable
        {
            width:100%;
        }
        .td0
        {
            text-align:right ;
            width:35%;
            padding-right:5px;
            vertical-align:top;
        }
        .td1
        {
            text-align:left ;
            width:65%;
            padding-left:5px;
        }
    </style>
    <link href="/Css/rulcode.css" rel="stylesheet" type="text/css" />
    <script src="/Javascript/jquery-1.3.2.min.js" type="text/javascript"></script>
    <script src="/Javascript/jquery.rulecode.js" type="text/javascript"></script>

    <script src="/Javascript/jquery.extender.js" type="text/javascript"></script>
    <script type="text/javascript">
        $(document).ready(function() {
            if ($.TableFieldValidate != null) {
                $.TableFieldValidate.Vaidate("FieldText", "UpdateButton");
            }
        });
    </script>
    <script type="text/javascript">
        function closeWindow() {
            if (window.top != window) {
//                var queryname =$.getQueryString("queryname");
//                var isNewQuery = $.getQueryString("isnew");
//                var filter = (isNewQuery == 1) ? ("queryname=" + queryname) : "";
                window.top.jQuery.refresh( );
            }
            window.opener = null;
            window.open("", "_self");
            window.close(); 
        }
    </script>
</head>
<body>
    <form id="form1" runat="server">
     <div class="MainDiv">
        <b id="InfoB" runat="server">修改过滤条件</b>
        <hr /> 
        <table class="MainTable">
            <tr>
                <td class="td0">表名：</td>
                <td class="td1">
                    <asp:Label ID="TableNameLabel" runat="server" Text=" "></asp:Label>
                </td>
            </tr> 
            <tr>
                <td class="td0">字段名：</td>
                <td class="td1">
                    <asp:DropDownList ID="DropDownList_FieldName" Width="200px" runat="server" 
                        onselectedindexchanged="DropDownList_FieldName_SelectedIndexChanged" 
                        AutoPostBack="True">
                    </asp:DropDownList>
                </td>
            </tr>
            <tr>
                <td class="td0">过滤操作：</td>
                <td class="td1">
                    <asp:DropDownList ID="DropDownList_FilterAction" Width="200px" runat="server">
                        <asp:ListItem Selected="True" Value="=" Text="="></asp:ListItem>               
                    </asp:DropDownList>
                </td>
            </tr>
            <tr>
                <td class="td0">过滤的值：</td>
                <td class="td1">
                    <asp:TextBox ID="TextBox_FilterValue" CssClass="FieldText" width="200px" runat="server"></asp:TextBox> 
                    <asp:DropDownList ID="DropDownList_FilterValue"  Visible ="false" Width="200px" runat="server">
                    </asp:DropDownList>    
                </td>
            </tr> 
            <tr>
                <td class="td0">描述：</td>
                <td class="td1">
                    <asp:TextBox ID="TextBox_Desc" width="400px" runat="server" TextMode ="MultiLine" 
                        Height="100px"></asp:TextBox> 
                </td>
            </tr> 
            <tr>
                <td class="td0">                       
                    <asp:Button ID="Button_Save" CssClass="UpdateButton" runat="server" Text="保存" 
                        onclick="Button_Save_Click" />
                </td>
                <td class="td1">
                    <asp:Button ID="Button_Cancel" runat="server" Text="取消" 
                        onclick="Button_Cancel_Click" />
                </td>
            </tr>
        </table>       
    </div>

   
    </form>

</body>
</html>
